Ontogenetic, dietary, and environmental shifts in Mesosauridae

Mesosaurs are the first secondarily aquatic amniotes and one of the most enigmatic clades of reptiles from the early Permian. They have long puzzled paleontologists with their unique morphologies: possessing an elongated skull with thin needle-like teeth, a long neck, large webbed hindlimbs, banana-shaped pachyosteosclerotic ribs, and a long tail. Here, we look at a large dataset of morphometric measurements from 270 mesosaur specimens in collections around the world. These measurements characterize skull, tooth, and limb proportions and their variation with size. This data presents evidence of surprising ontogenetic changes in these animals as well as new insights into their taxonomy. Our results support the recent hypothesis that Mesosaurus tenuidens is the only valid species within Mesosauridae and suggest that “Stereosternum tumidum” and “Brazilosaurus sanpauloensis” represent immature stages or incomplete specimens of Mesosaurus by showing that all three species occupy an incomplete portion of the overall size range of mesosaurs. Under the single-species hypothesis, we highlight a number of ontogenetic trends: (1) a reduction in skull length accompanied by an elongation of the snout within the skull, (2) an elongation of teeth, (3) a reduction in hind limb length, and (4) a reduction in manus length. Concurrent with these changes, we hypothesize that mesosaurs went through a progressive ecological shift during their growth, with juveniles being more common in shallow water deposits, whereas large adults are more frequent in pelagic sediments. These parallel changes suggest that mesosaurs underwent a diet and lifestyle transition during ontogeny, from an active predatory lifestyle as juveniles to a more filter-feeding diet as adults. We propose that this change in lifestyle and environments may have been driven by the pursuit of different food sources, but a better understanding of the Irati Sea fauna will be necessary to obtain a more definitive answer to the question of young mesosaur diet.

More than other aspects of their anatomy, the long thin teeth of mesosaurs have puzzled those who studied them the most. If they are somewhat reminiscent of those of other vertebrates such as dolphins or gharials, mesosaur teeth are singular in their length and their needle-like morphology. Consequently, they have no modern analog, which has led to contradicting attempts at characterizing the feeding habits of mesosaurs. Based on cranial morphology alone, MacGregor (1908) proposed a ''fish''-based diet for mesosaurs. Subsequent studies discarded this interpretation (Wiman, 1925;Araújo, 1976), noting that their teeth were too fragile for active hunting and pointing to the absence of ''fish'' in mesosaur-bearing strata (Oelofsen & Araújo, 1983;Piñeiro et al., 2012b), although recent works show that fish were more frequent than previously thought (Xavier et al., 2018). In fact, based on their tooth morphology (Pretto, Cabreira & Schultz, 2012), the fauna of the Irati-Whitehill Sea (Piñeiro et al., 2012b;Chahud & Petri, 2013;Xavier et al., 2018), as well as gut content and coprolite analyses (Silva et al., 2017), most authors concluded that mesosaurs were filter-feeders trapping pygocephalomorph crustaceans in the net of their teeth (Oelofsen & Araújo, 1983;Modesto, 1999;Modesto, 2006;Modesto, 2010;Piñeiro et al., 2012b;Silva et al., 2017). Despite this, some authors suggested that mesosaurs could have been active hunters (Pretto, Cabreira & Schultz, 2012) or even scavengers (Silva et al., 2017).
Here, we provide the first quantitative assessment of ontogenetic changes in mesosaurs on such a large number of specimens. With this dataset, we test the hypothesis from Núñez Demarco, Ferigolo & Piñeiro (2022) that mesosaur grow isometrically. Our results support the single-species model of Piñeiro et al. (2021) by demonstrating that the formerly recognized species occupy incomplete segments of the mesosaur size range and show very little difference between them. Based on the single-species model, we do not retrieve the isometric growth measured by Núñez Demarco, Ferigolo & Piñeiro (2022) and instead show that the ontogeny of mesosaurs is marked by some significant allometric transformations and environmental partitioning, likely indicating a change in diet and lifestyle with growth.

Material investigated
We examined 270 articulated mesosaur specimens from collections around the world. Of these, 115 were previously attributed to Mesosaurus tenuidens, 96 to ''Stereosternum tumidum '',13 to ''Brazilosaurus sanpauloensis'',and 46 were unidentified (Table S1). Of the identified specimens, 47 had a preserved skull and teeth, with 18 attributed to Mesosaurus, 29 to ''Stereosternum'', and only one to ''Brazilosaurus''. Earlier studies mentioned the presence of teeth in ''Brazilosaurus'' (Rossmann, 2002;Modesto, 2006;Silva et al., 2017), all of them relying on the average tooth length of 2 mm provided by Rossmann (2002). We find this value contentious in different regards. First, Rossmann (2002) did not provide the raw measurements for his calculation. Second, we reexamined the material described by Rossmann (2000); Rossmann (2002) as bearing teeth and noticed that elements he describes as teeth are in fact misidentified broken tooth sockets from the maxilla or the dentary (Fig. S1). Finally, out of the twelve specimens assigned to ''Brazilosaurus'' studied here, only ROM 28496 had some visible complete teeth. In all other specimens, teeth are either missing or completely broken, in any case not in a state of preservation allowing their measurement. Consequently, we must dismiss the average tooth length for ''Brazilosaurus'' of two mm given by Rossmann (2002). For this reason, no specimens previously attributed to ''Brazilosaurus'' are included in our statistical analysis of teeth.

Measurements
For each specimen, we measured the length of most preserved long bones: humerus, radius, ulna and metacarpals in the forelimb; femur, tibia, fibula, and metatarsals in the hind limbs. When possible, we also measured autopod length, from the proximal edge of the intermedium to the distal tip of digit III for the forelimb, and from the proximal edge of the astragalus to the distal tip of digit V in the hind limb, as digit III and V are the longest digits in the anterior and posterior autopod, respectively. In juveniles where carpals and tarsals were not ossified, the distalmost portions of the ulna or fibula were taken as most proximal extent of the autopodium. To account for cranial proportions, we measured the total skull length as well as antorbital and postorbital length.
Likely due to dental replacement, mesosaur teeth can greatly vary in size within a single specimen (Modesto, 1999;Modesto, 2006;Piñeiro et al., 2021). To better account for the dimensions of mesosaur teeth, we therefore chose not to use average tooth length and diameter, unlike previous works (Piñeiro et al., 2021). Instead, we measured the length of the longest visible tooth and the diameter of this tooth at its base.
Our specimens were preserved in various states of completeness, with some showing only the anterior or the posterior half of the body and others missing limbs or neck while others were mostly complete. Unlike Núñez Demarco, Ferigolo & Piñeiro (2022) who studied ontogenetic variation within bones, we wanted a shared proxy for specimen size to be able to model and compare variations in all bones independently. Thus, we calculated the average centrum length of dorsal vertebrae for each specimen, as this measurement has been shown to be a reliable estimate for body length (Núñez Demarco et al., 2018).
All measurements were taken using a caliper directly on specimens or Fiji 1.53c on distortion-corrected high-resolution photographs.

Facies
Mesosaur specimens can be found in various deposits that represent different sections of the carbonate ramp boarding the Irati-Whitehill Sea (Xavier et al., 2018;Ng, Vega & Maranhão, 2019). To account for size distribution across deposit environments and potential niche partitioning of ontogenetic stages in mesosaurs, we categorized our specimens into five facies: (i) yellow limestone, (ii) white calcarenite, (iii) grey siltstone, (iv) grey mudstone, and (v) bituminous black shales. These facies represent a gradient in depth, energy level, and oxygenation of the water layers.

Statistics
According to Huxley (1932), simple allometry is described by the equation y = kx α or in its logarithmic form logy = αlogx + logk.
The allometric coefficient α characterizes the slope of the linear relationship between the logged valued of y and x and log k is the intercept of the linear relationship. Thus, an isometric growth (no changes in proportion to size during ontogeny) is characterized by an allometry coefficient of α = 1 while values of α >1 and α <1 respectively reflect positive and negative allometry.
By transforming the simple allometry equation to express the ratio y/x rather than y as a function of x, we obtain y x = kx α−1 which in turns gives In this equation we can define another allometry coefficient β = α − 1. Thus, for the same values of x and y, isometry is defined by β = 0 while negative and positive allometry are respectively characterized by negative and positive values of β, improving readability both graphically and numerically (Klingenberg, 1998). Therefore, we prefer β to α in the present study.
For each metric, we computed a linear regression model of the logged ratio of the metric's values over size proxy value ( log y x ) as a function of logged size proxy values (log x) and calculated the allometry coefficient β to test for proportion changes throughout ontogeny.
Similarity between species was also tested for each measurement. Linear modelling and statistical analyses were carried out in R 4.0.5 (R. Core Team, 2021).
For all three species, skull measurements rank similarly in terms of allometry coefficients with antorbital length having the highest, followed by total length and finally postorbital length last. This shows how skull elements vary differently in proportion throughout ontogeny. To better account for these variations, we measured the effect of allometry in function of total skull length instead of body size. In this configuration, we obtain very concordant results between the three species: antorbital length shows significant positive allometry, whereas postorbital length shows significant negative allometry (Table 2). Thus, over the course of ontogeny, the postorbital length decreases while the snout increases relative to overall skull length (Fig. 3).
Tooth length and diameter in Mesosaurus both display positive allometry, although the linear relationship is not significant (Table 1). In ''Stereosternum'', both measurements show a significant negative allometry, with tooth diameter showing the lowest coefficient (β = −0.622, p < 0.001).
Since our results highlight variation in cranial dimensions throughout ontogeny, we also calculated allometry coefficients for tooth measurements with respect to skull length. Surprising, this shows non-significant negative allometry for tooth length in both species, whereas tooth diameter exhibits negative allometry for both species, although it is only significant in ''Stereosternum'' (Table 2). Thus, mesosaur teeth grow in length at the same rate as the skull, meaning that they do not become proportionally longer throughout ontogeny. However, these teeth keep their juvenile diameter and grow only in length in ''Stereosternum'' whereas both length and diameter grow isometrically to the skull in Mesosaurus (Fig. 4).

Limbs
In all three species, most long bones show no significant difference in growth with isometry (Tables 3A-3C), meaning that their proportional length with respect to body size does not change throughout ontogeny. However, there are several exceptions to this. In ''Brazilosaurus'', femur, tibia and metatarsal V length show significant negative allometry (Table 3A). Although this might reflect a size reduction of the posterior limb during ontogeny in this species, those measurements are only documented for eight adult specimens in our dataset and likely do not reflect the entire ontogenetic trajectory of the species.
In Mesosaurus, most forelimb bones exhibit a significant positive allometry, aside from metacarpals II, IV, and V (Fig. 2). While this suggests that the anterior autopod increases in size, there are very few juveniles or subadult Mesosaurus in our dataset. Thus, much like for ''Brazilosaurus'', Mesosaurus forelimb measurements are concentrated in the adult region of the morphospace, and do not satisfyingly account for the entire ontogenetic variation. In ''Stereosternum'', metacarpal I and metatarsal I also display a significant positive allometry, but femur, tibia, fibula and metacarpal V show a significant negative allometry (Fig. 2). Uniquely in mesosaur ''species'', the posterior autopod also shows a slight significant negative allometry. This reflects a reduction in limb size with respect to the body. ''Stereosternum'' being the best-documented taxon here, these results are more representative than for the two other species.

ANOVAs
We measure a significant effect of species on allometry coefficients for eight measurements: total skull length, antorbital length, postorbital length, tooth length, humerus, femur, tibia, and fibula length (Table 4). However, rather than indicating a real difference between the species, this likely reflects a sampling bias. In the near absence of Mesosaurus and ''Brazilosaurus'' juveniles in our dataset, values for these species form clusters concentrated in the adult-size region, which distorts linear regressions (Fig. 2). Therefore, these regressions do not fully account for the ontogenetic trajectories of the measurements.

Single-species hypothesis
In a recent study, Piñeiro et al. (2021) proposed Mesosaurus tenuidens to be the only valid species within the clade by statistically rejecting most characters used to discriminate between the three previously recognized mesosaur species. To account for this new hypothesis, we reproduced our analysis with all specimens (re)assigned to Mesosaurus.

Skull
All three skull measurements show negative allometry when compared to body size, but the linear relationship is only significant for postorbital length and total skull length (Table  1). When measuring allometry with respect to total skull length, the signal is unambiguous,  with antorbital length showing positive allometry and postorbital length negative allometry (Fig. 3). Similar to the three-species hypothesis, our results with one species point to an elongation of the snout elongates and a reduction of postorbital length, while overall skull length proportionally decreases with respect to the body. These results differ from those of Núñez Demarco, Ferigolo & Piñeiro (2022) who measured an isometric relationship of antorbital and postorbital length to total skull length. However, this can be easily explained by a difference in the statistical power of our datasets. We use a much larger dataset (84 specimens vs. 19), including more juveniles and larger specimens, which refines the results by producing smaller confidence intervals. It is therefore likely that the isometry in skull proportion measured by Núñez Demarco, Ferigolo & Piñeiro (2022) is a statistical artifact caused by the size of their dataset. Teeth Under the single-species hypothesis, tooth length shows positive but non-significant allometry whereas diameter shows a significant negative allometry with respect to body size. However, when compared to skull size, tooth length exhibits a strong significant positive allometry and tooth diameter a significant negative allometry (Table 2). In practice, tooth diameter remains the same in adults as in juveniles, but teeth elongate throughout ontogeny and become more needle-like.

Limbs
There is a strong trend to hind limb reduction when considering a single mesosaur taxon (Fig. 5). All eight long bone measurements display negative allometry coefficients in relation to body size and this relationship is significant for seven of them (Table 3D). Only   metatarsal I length is not significantly isometric in growth. Posterior autopod length also shows a significant negative allometry. In contrast, forelimb long bones do not show such a reduction in size. Only metacarpals display significant negative allometry, with the exception of metacarpal I that has a non-significant positive allometry coefficient. Thus, while stylopod and zeugopod do not vary in proportions, it appears the manus is reduced during ontogeny.
At first glance, it could seem that these results do not match those of Núñez Demarco, Ferigolo & Piñeiro (2022), who report isometric growth in mesosaur limbs. Nevertheless, our findings are compatible with theirs. What Núñez Demarco, Ferigolo & Piñeiro (2022) measure is that long bones grow isometrically with respect to their respective stylopod, humerus length for fore limbs and femur for hind limbs. What we measure is the allometry of these bones with respect to size. Here we show that femur length displays a significant negative allometry with respect to size, and so do most other limb bones. In sum, the isometric growth measured by Núñez Demarco, Ferigolo & Piñeiro (2022), and by extension their other results for limbs, is likely an effect of using different reference frames. Facies are organized top to bottom along a gradient of depth as depicted to the right, and following the deposition models from Xavier et al. (2018) andNg, Vega &Maranhão (2019). The energy level gradient on the right corresponds to grain size in the sediment. There is a clear overrepresentation of juveniles in limestone, as well as an overrepresentation of large specimens in black shale.

Environmental distribution
Full-size DOI: 10.7717/peerj.13866/ fig-6 they also occur in siltstone and black shales. Mid-sized mesosaurs are well represented in all facies despite frequency variations due to sample size differences. Contrary to what has been hypothesized (Núñez Demarco et al., 2018), we do not find that large specimens are only found in the marginal regions of the basin. Instead, in our dataset, very large specimens (vertebral length ≥ 10 mm) are exclusively found in mudstone and black shales, facies that correspond to deeper, more pelagic, and more anoxic environments (Xavier et al., 2018;Bastos et al., 2021).

Missing juveniles and single-species hypothesis
One of the most significant results of our study is not found with regards to size and proportional changes in mesosaur anatomy but instead in the distribution of body size itself. Despite the 270 specimens examined here, there are a number of surprising gaps in the size range covered by our sample (Fig. 7). First, the few ''Brazilosaurus'' specimens studied here are concentrated in the adult size range of ''Stereosternum'', but no juveniles or subadults are preserved. Second, there is a clear divide between the youngest ''Stereosternum'' specimens on the one hand and subadults and adults of that species on the other hand. Third, and more importantly, only two specimens of Mesosaurus are the size of juvenile ''Stereosternum'', whereas all other specimens range from the size of ''Stereosternum'' subadults to larger sizes than the largest ''Stereosternum'' specimens. These gaps in size distribution have a direct effect on the interpretation of allometric measurements as they alter the results of linear regressions, making them less representative of ontogenetic changes. Piñeiro et al. (2021) highlighted that most features employed to define mesosaur species are not statistically supported or are practically unusable for identification. Characters like the shape of the interclavicle, tooth length, or presacral vertebral count are highly preservation-dependent, whereas others such as the degree of pachyostosis of ribs or the skull-neck length ratio are subjective and ontogenetically variable (for pachyostosis, see also Klein et al., 2019). This lack of reliable characters led the authors to suggest that both ''Stereosternum tumidum'' and ''Brazilosaurus sanpauloensis'' are junior synonyms of Mesosaurus tenuidens.
The ontogenetic variability of supposedly taxonomic characters led to an age partitioning of mesosaur specimens into the different ''species''. On the one hand, juvenile and subadult specimens tended to be identified as ''Stereosternum'', because they bear shorter conical teeth and are usually preserved complete, displaying the maximum number of presacral vertebrae. Both features were formally admitted as prominent characters for mesosaur identification.
On the other hand, the largest mesosaur specimens bear longer, thinner teeth and have more markedly pachyostotic ribs, and they tended historically to be attributed to Mesosaurus. As for ''Brazilosaurus'' specimens, they were usually identified on the basis of their cervical vertebral count, which is however a misidentification as the result of a displaced rib cage (A. Verrière, 2022, pers. obs.). In fact, even the original description of the species (Shikama & Ozaki, 1966) miscounted the number of cervicals due to the posterior displacement of dorsal ribs (A. Verrière, 2022, pers. obs.), which led to the erroneous erection of this feature as a defining character. To summarize, there are several reasons as to why mesosaur invalidated ''species'' occupy different regions of the size range.
Rather than a sampling bias, the size distribution gaps in our dataset more likely reflect a species-identification bias. Our data shows consequent overlap in the morphometrics of all three species. ''Brazilosaurus'' is virtually indistinguishable from ''Stereosternum'', whereas the old definition of Mesosaurus seems to have mostly representatives on the higher side of the size spectrum (Fig. 7). Furthermore, the low significance of allometry coefficients  (Tables 1-3) is also likely an effect of the small number of juveniles of the Mesosaurus type in our dataset, although more juvenile specimens have been described that we could not include (Piñeiro et al., 2012a).
Our results therefore corroborates the single-species hypothesis of Piñeiro et al. (2021) and their discarding of the former characters as ontogenetically variable. In fact, the three previously identified ''species'' more probably represented three artificial types: the ''Brazilosaurus''-type is a poorly preserved mesosaur with displaced ribs, the ''Stereosternum''-type is a size class encompassing juveniles to young adults, and the ''Mesosaurus''-type represents adults with more extreme sizes and morphologies. Consequently, hereafter we will only consider our results in the light of the single-species hypothesis.

Environmental partitioning
Even when considering Mesosaurus as the only valid mesosaur taxon, one puzzling difference between the previously distinct types cannot be explained as an effect of ontogenetic changes or dubious characters alone. Some authors pointed out that the three types were not equally distributed across the facies of the Irati-Whitehill Sea. Oelofsen & Araújo (1983) and Rossmann (2002) noted that ''Brazilosaurus'' and ''Stereosternum'' were more commonly found in limestone deposits, whereas Mesosaurus was more frequent in oily black shales. Since these publications however, mesosaur specimens have been described in other facies and the former species have been synonymized, meaning their observations must be considered with caution.
Nevertheless, our study demonstrate that size classes are not homogeneously distributed across lithological facies: juveniles are overrepresented in limestone, and very large/old specimens in black shales (Fig. 6). As argued above, flaws in the formerly admitted diagnostic characters have led to juveniles and young adults being preferentially assigned to ''Stereosternum'' and old adults to Mesosaurus (Fig. 7). Because we look at articulated specimens, it is also fair to assume that the specimens were buried relatively close to their life environment. Therefore, what Oelofsen & Araújo (1983) and Rossmann (2002) noticed were likely the signs of ontogenetic stage partitioning rather than species partitioning.
The overrepresentation of juveniles and large adult in some facies suggests that mesosaurs preferentially occupied some environments at different stages of their life. Juveniles were mostly present in the shallower, more coastal sections of the carbonate ramp, while medium-sized mesosaurs were present in all areas, and the largest and oldest individuals were restricted to pelagic and anoxic regions (Fig. 6). Thus, if mesosaurs were not confined to a specific region of their environment, it seems that, overall, they gradually moved away from the coast during their growth.
The pelagic migration of mesosaurs with growth raises the question of their reproduction. Associated articulated juveniles and adults, even gravid individuals, have been found in limestone, siltstone, and mudstone (Piñeiro et al., 2012a;Bickelmann & Tsuji, 2018), but the greater frequency of juveniles in limestone suggests that mesosaurs were mostly born near the coast. If they were oviparous like most reptiles, this would have been easily explained by the necessity to lay eggs on land. However, evidence suggests instead that mesosaurs were viviparous, and possibly even cared for their young (Piñeiro et al., 2012a). Mesosaurs could therefore have given birth anywhere in the sea, making the causes of a partitioning less clear. To try to explain this, we must look at our morphometric analyses.

Ontogenetic changes and diet shifts
Our results show that mesosaur growth is marked by several morphological changes: an elongation of the teeth relative to the skull (Fig. 3), an elongation of the snout (Fig.  4), and a reduction of limbs (Fig. 5). Limb reduction throughout ontogeny hints at a difference in locomotory habits between juveniles and adults. Mesosaurs are swimming reptiles, and the degree of involvement of the limbs in locomotion is still debated. Some authors support the idea of mainly tail-driven mesosaurs (Braun & Reif, 1985;Villamil et al., 2016) while others suggested a potentially larger role of limbs in propulsion (Da Silva & Sedor, 2017;MacDougall et al., 2020). Yet, the ontogenetic limb reduction we expose seems incompatible with the conception that limbs were crucial for locomotion. Instead, our results provide evidence for a decreasing involvement of limbs in mesosaur swimming and weigh in favor of a tail-driven model of mesosaur swimming throughout their ontogeny.
The association of limb reduction with cranial and dental modifications strongly suggest the existence of locomotion and dietary shift in mesosaur. Such shifts are not rare in reptiles but are usually associated with dietary partitioning between juveniles and adults, meaning they exploit different food sources at different stages of their growth (Arthur, Boyle & Limpus, 2008;Gignac & Erickson, 2015;Dick, Schweigert & Maxwell, 2016;Wang et al., 2017). In the case of mesosaurs, a change in diet could explain the environmental migration we observe in size classes (Fig. 6). As mesosaurs grew, they would have shifted from an abundant food source in the coastal environment to another one more prevalent in pelagic regions or other water layers. Preying on different food sources in different water layers would have been a way to avoid competition between ontogenetic stages in a sea where resources were scarce. Different feeding habits would also explain the presence of juveniles in pelagic environments, as young mesosaurs could have been born anywhere in the sea but would have preferentially migrated to the coastal region looking for food. Yet, there remains the question of the alternative food source.
Traditionally, mesosaurs are considered filter-feeders that preyed on pygocephalomorph crustaceans, based on stratigraphic occurrences (Oelofsen & Araújo, 1983;Piñeiro et al., 2012b;Xavier et al., 2018;Ng, Vega & Maranhão, 2019) as well as on gastric contents and coprolites (Piñeiro et al., 2012b;Ramos, 2015;Silva et al., 2017). While this applies to adults, it is unclear what the diet of juveniles could have been. Mesosaur-bearing strata of the Irati-Whitehill Sea deposits are rich in mesosaurs and pygocephalomorphs remains but scarce in other types of fossils. Only rare invertebrate traces, bivalves, and paleonisciform fish scales have been described (Oelofsen & Araújo, 1983;Piñeiro et al., 2012b;Matos et al., 2017;Xavier et al., 2018), although recent works have revised the abundance of paleonisciform fishes upwards (Xavier et al., 2018). This raises a puzzling question: if juvenile mesosaurs did not have the same diet as adults, what could they possibly have been eating?
Our morphometric analysis shows that young mesosaurs would have had longer limbs, shorter snouts and shorter teeth than adults, a morphology better suited to active hunting than that of adults. Among the known Irati-Whitehill fauna, only pygocephalomorph crustaceans and paleonisciform fishes could have been the subject of active hunting. Thus, juvenile mesosaurs could have actively preyed on small fish or large pygocephalomorphs, while mesosaurs would have slowly filtered waters to catch smaller pygocephalomorphs or even larvae. The coastal environment would have been better oxygenated and richer in nutrients, fostering the growth of larger preys, whereas smaller crustaceans could have occupied the harsher pelagic waters. Unfortunately, the ecology of pygocephalomorph crustaceans or paleonisciform fish is very poorly known. One way of testing this hypothesis would be to examine size distribution across facies for fish and crustaceans and see if there is a trend, similar to what we did for mesosaurs.
Another possible answer is that juvenile mesosaurs fed on animals that did not preserve well under the conditions where mesosaurs were buried. High energy conditions in the mid-coastal environments as well as acidic anoxic waters in the black shale environment might have hampered the preservation of some animals. Moreover, young mesosaurs could have eaten jellyfish or soft invertebrates with little to no mineralized tissues, which greatly reduces the chances at fossilizing the latter. Although the sea's hypersaline conditions would not have favored such animals (Piñeiro et al., 2012b;Bastos et al., 2021), there are occurrences of soft invertebrates in hypersaline contexts (Parker, 1959;Tanner, Glenn & Moore, 1999;Gilabert, 2001). Yet, there are many cases of outstanding preservation in the Irati-Whitehill sediments producing complete articulated fossils (Modesto, 1999;Modesto, 2010;Piñeiro et al., 2012b;Núñez Demarco et al., 2018), sometimes even showing soft tissue preservation (Piñeiro et al., 2012b;Piñeiro et al., 2012a;MacDougall et al., 2020). With such conditions of preservation, it seems very unlikely that no trace of other invertebrates would remain. It is possible, however, that soft animal fossils are yet to be discovered, and that further study of the mesosaur-bearing Irati-Whitehill deposits will reveal them.

CONCLUSIONS
After examining a large sample of mesosaur morphometric measurements, we present evidence of ontogenetic changes in these animals as well as insights into their taxonomy. First, our results demonstrate that the three previously identified species occupy incomplete portions of the size range of mesosaurs and show very minor differences in body proportions otherwise. This supports the proposition of Piñeiro et al. (2021) that Mesosaurus tenuidens is the only valid species and indicates that ''Stereosternum tumidum'' and ''Brazilosaurus sanpauloensis'' likely represent immature stages or incomplete specimens of Mesosaurus.
Our results also highlight the following ontogenetic trends: • a reduction in skull length accompanied by an elongation of the snout within the skull • an elongation of teeth • a reduction in hind limb length • a reduction in manus length.
These ontogenetic trends are associated with a partitioning of ontogenetic stages across facies following a gradient of depth and distance to the coast. This suggests that mesosaurs underwent a diet and lifestyle transition during their growth: juveniles had an active predatory lifestyle in a coastal environment, while old adults adopted a more filter-feeding diet in more pelagic and anoxic waters. Our hypothesis is that mesosaurs exploited different food sources during their lifetime, but further study of the Irati-Whitehill Sea fauna will be necessary to truly test this.